package com.zc.microservice.user.core.infra.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zc.microservice.user.core.infra.entity.SystemRole;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @author zcj
 * @version 1.0.0
 * @date 2022/1/24 10:43
 */
@Mapper
public interface SystemRoleMapper extends BaseMapper<SystemRole> {

    /**
     * 用户ID查询角色
     *
     * @param userId
     * @return
     */
    List<SystemRole> queryRolesByUser(String userId);


}
